import { http } from '~/utils/serve/http'

// 获取验证码
export function getCodeImg() {
  return http.get({ url: '/captchaImage' })
}

export function login(data) {
  return http.post(
    {
      url: '/login',
      data: JSON.stringify(data),
      config: {
        isToken: false,
        ContentType:'application/json;charset=UTF-8'
      }
    }
  )
}

export function getPinLogingBg(id){
  return http.get({url:'/base/brand/'+id,config:{isToken:false}})
}